package com.biz.primus.ms.sms.event;

import com.biz.primus.model.misc.enums.ApiExceptionType;
import com.biz.primus.model.misc.vo.ShortMessageVo;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * @author yanweijin
 * @date 2017/7/5
 */
@Getter
public class ApiExceptionEvent extends ApplicationEvent {

    private static final long serialVersionUID = -2490132791234659948L;
    private final ShortMessageVo shortMessageVo;

    private final String extraMessage;

    private final ApiExceptionType exceptionType;

    public ApiExceptionEvent(Object source, ShortMessageVo sm, ApiExceptionType exceptionType, String extraMessage) {
        super(source);
        this.shortMessageVo = sm;
        this.exceptionType = exceptionType;
        this.extraMessage = extraMessage;
    }

}
